-- This file contains instructions for replicating the empirical results in "From Textbook Pluralism to Modern Hyper-Pluralism: Interest Groups and Supreme Court Nominations, 1930-2017," published in the Journal of Law and Courts.


########################################################
R scripts
###############################################################

-- "cameron_et_all_IG_noms_JLS_replication_script.R" runs all the analyses in the paper (except the actual regressions, as explained below)

Here is the sessionInfo() for R, at the time the script was last run:

> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] bindrcpp_0.2      stargazer_5.2     xtable_1.8-2      gridExtra_2.3    
 [5] readxl_1.0.0      forcats_0.2.0     stringr_1.2.0     dplyr_0.7.4      
 [9] purrr_0.2.4       readr_1.1.1       tidyr_0.7.2       tibble_1.3.4     
[13] ggplot2_2.2.1     tidyverse_1.2.1   readstata13_0.9.0

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.14     cellranger_1.1.0 compiler_3.4.2   plyr_1.8.4      
 [5] bindr_0.1        tools_3.4.2      digest_0.6.12    lubridate_1.7.1 
 [9] jsonlite_1.5     nlme_3.1-131     gtable_0.2.0     lattice_0.20-35 
[13] pkgconfig_2.0.1  rlang_0.1.4      psych_1.7.8      cli_1.0.0       
[17] rstudioapi_0.7   yaml_2.1.15      parallel_3.4.2   haven_1.1.0     
[21] xml2_1.1.1       httr_1.3.1       hms_0.4.0        tidyselect_0.2.3
[25] grid_3.4.2       glue_1.2.0       R6_2.2.2         foreign_0.8-69  
[29] modelr_0.1.1     reshape2_1.4.2   magrittr_1.5     scales_0.5.0    
[33] rvest_0.3.2      assertthat_0.2.0 mnormt_1.5-5     colorspace_1.3-2
[37] labeling_0.3     stringi_1.1.6    lazyeval_0.2.1   munsell_0.4.3   
[41] broom_0.4.3      crayon_1.3.4    

########################################################
DATA Files for Descriptive Analyses
###############################################################

-- "combined_NYT_LAT_STORY_data.dta" contains data on newspaper articles mentioning interest groups in the New York Times and Los Angeles Times, at the level of the story.

-- "combined_NYT_LAT_TACTICS_data.dta" contains data on newspaper articles mentioning interest group tactics in the New York Times and Los Angeles Times.

-- "hearing_data_individual_level_updated.dta" contrains data on interest group participation in the hearings of the Senate Judiciary Committee

-- "master_nominee_data_post_1930.dta" contains data on every nominee from 1930 to 2018

-- "tactics_taxonomy.csv" contains information on the taxonomy of tactics


########################################################
Regression Analyses
#######################################################

-- The file "nom_data_for_mobilizaton_regressions_in_STATA.dta" is a Stata file used to run the regressions.

-- "amicus_counts_for_IG_paper.csv" contains the counts of amicus briefs by year.

-- The do file "mobilization_regressions_jlc_rr.do" runs the regressions, and produces the output dataset: "nom_data_for_postestimation.dta". It also creates two datasets of simulated results: "negbin_sims1_full_time_model_all_groups_new_rr.dta" and "negbin_sims1_full_time_model_neg_groups_new_rr.dta"

-- Figures 8 and A-6 are created in "cameron_et_all_IG_noms_JLS_replication_script.R"





